﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;

namespace ABC.Domain.Entities
{
    public class FieldWithDrop
    {
        public string NameField { get; set; }

        public string Value { get; set; }

        public bool IsActive { get; set; }

        public List<SelectListItem> ItemList { get; set; }

        public FieldWithDrop(List<SelectListItem> list)
        {
            ItemList = new List<SelectListItem>();
            ItemList = list;
        }

        public FieldWithDrop(List<SelectListItem> list, string nameField, string value)
        {
            ItemList = new List<SelectListItem>();
            ItemList = list;
            NameField = nameField;
            Value = value;
        }
    }
}
